package com.jdk.demo.map.concurrentHashMap;

import java.util.concurrent.ConcurrentHashMap;

public class Demo {

	public static void main(String[] args) {
		ConcurrentHashMap<String, String> map = new ConcurrentHashMap<>(3);
		for(int i=1; i<=2000; i++)
			map.put("k" + i, "val" + i);

		map.size();
		map.get("k2");
		map.remove("k2");

		map.putIfAbsent("k21", "val21");
	}

}
